import {createRouter, createWebHistory} from 'vue-router'
import Home from '../views/pages/Home.vue'
import Report from '../views/pages/Report.vue'
import Msg from "@/views/pages/Msg.vue";
import Query from "@/views/pages/Query.vue";
import Purchase from "@/views/purchase/Purchase.vue";

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home
        },
        {
            path: '/report',
            name: 'report',
            component: Report
        },
        {
            path: '/msg',
            name: 'msg',
            component: Msg
        },{
        path: '/query',
        name: 'query',
        component: Query
      },{
            path: '/purchase',
            name: 'purchase',
            component: Purchase
        }
    ]
})

export default router
